﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using ASPPanificadora.classes;

namespace ASPPanificadora.servicos
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "IVendaS" in both code and config file together.
    [ServiceContract]
    public interface IVendaS
    {
        [OperationContract]
        string Salvar(Venda venda, IList<ItemVenda> listaItemVenda);

        [OperationContract]
        Venda PesquisarPorId(int id);

        [OperationContract]
        int CodigoUltimaVenda();

        [OperationContract]
        string Exclui(int idVenda);

        [OperationContract]
        Venda VendaFuncionarioPesquisarPorId(int id);

        [OperationContract]
        int CodigoUltimaVendaFuncionario();
    }
}
